<?php
$id=$_GET['q'];

$Question1=PollQuestion::model()->find('id=?',array($id));
$Option11=PollOption::model()->findAll('question_id=?',array($id));
?>
<h3 style="color:maroon;"><?php echo $Question1->question . '</br>';?></h3>
<?php
foreach ($Option11 as $Option12) {
	echo '<div>';
	echo "<b style='color:maroon;'>". $Option12->option . "<br/></b>";
	echo '</div>';
?>
	<img src='<?php echo Yii::app()->theme->baseUrl;?>/images/maroon.jpg' width='<?php echo $Option12->percent; ?>' height='20'>
	<?php
	echo '<div style="margin-left: 230px;margin-top: -10px;" >';
	echo $Option12->percent.'%'. '<br/>';
	echo '</div>';
}
?>